<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UsersFollow extends Model
{
    //关注的人和粉丝
    
    protected $table = 'yds_user_follow';

    protected $primaryKey = 'follow_id';

    //关闭更新  'updated_at`, `created_at' 字段
    public $timestamps = false;
    //一对一关系
    public function hasOneguanzhus()
    {
    	return $this->hasOne('App\Models\UsersReg','uid','friend_uid');
    }
    public function hasOnefensis()
    {
    	return $this->hasOne('App\Models\UsersReg','uid','fans_uid');
    }
}
